package org.tarena.dang.dao;

import java.sql.SQLException;
import java.util.List;

import org.tarena.dang.entity.Book;
import org.tarena.dang.entity.Product;

public interface BookDAO {

	

	public List<Book> findByCid(int cid,int currentPage,int pageSize) throws SQLException;

	public int findByCiddAll(int cid)throws SQLException;

	public List<Book> findRecomBook(int n, int recomBookNnm)throws SQLException;

	public List<Book> findByPriceD(int cid, int currentPage, int pageSize)throws SQLException;

	public List<Book> findBySort(int cid, int currentPage,int pageSize, String orderBy)throws SQLException;

	public List<Book> findBySortAll(int parentId, int currentPage,
			int pageSize, String orderBy)throws SQLException;

	public int findByPageSizeAll(int parentId)throws SQLException;

	public List<Book> searchByKeyWords(String keyWords)throws SQLException;

	public List<Book> searchByKeyWords(String keyWords, int cid)throws SQLException;

	public Product findByPid(int pid) throws SQLException;

	public Book findByProId(int id) throws SQLException;

	public List<Book> findHotBooks()throws SQLException;
	
}
